﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APIDAL
{
    public class MemberClassDAL
    {
        public MemberClassDAL(MyContext context)
        {
            Context = context;
        }

        public MyContext Context { get; }

        /// <summary>
        /// 会员等级查询
        /// Select * from 表名
        /// </summary>
        /// <returns></returns>
        public List<MemberClass> GetMemberClasses()
        {
            return Context.MemberClasses.ToList();
        }
    }
}
